package com.starinside.wp.service.sms;

import static com.starinside.wp.foundation.constant.RedisConstant.CODE_EXPIRED_TIME;

public interface SmsService {
    /*
    发送短信
     */
    boolean sendSms(String phone, String templateCode, String params, Integer sourceType);

    /*
    发送验证码
     */
    boolean sendValidCode(String phone, String code, Integer sourceType);

    boolean sendValidCode(String phone, String code);

    String produceSmsCode(String phone, String code) ;

    String getSmsCode(String phone) ;

    void clearSmsCode(String mobile);

    String setSmsCode(String phone,String code);
}
